package ModelLayer;
import java.util.ArrayList;

/**
*
* @author DM79 group 5
* @version 2012.25.10
*/

public class Invoice {
	//instance variables 
    private String invoiceNo;
    private String paymentDate;
    private int amount;
    private ArrayList<SalesOrder> salesOrderList;

    
	/* Constructors */
    public Invoice(){
    	salesOrderList = new ArrayList<SalesOrder>();
    }
    
    public Invoice(String invoiceNo){
    	this.invoiceNo = invoiceNo;
    	salesOrderList = new ArrayList<SalesOrder>();
    }
            
    public Invoice(String invoiceNo,String paymentDate,int amount) {
    	this.invoiceNo = invoiceNo;
    	this.paymentDate = paymentDate;
    	this.amount = amount;
    	salesOrderList = new ArrayList<SalesOrder>();
    }
    
    
    /* Method list */
    //set methods
    public void setSalesOrderList(ArrayList<SalesOrder> salesOrderList) {
		this.salesOrderList = salesOrderList;
	}
    
    public void setInvoiceNo(String invoiceNo){
    	this.invoiceNo = invoiceNo;    	
    }
    
    public void setPaymentDate(String paymentDate){
    	this.paymentDate = paymentDate;
    }
    
    public void setAmount(int amount){
    	this.amount = amount;
    }
        
    //get method
    public ArrayList<SalesOrder> getSalesOrderList() {
		return salesOrderList;
	}
    
    public String getInvoiceNo(){
    	return invoiceNo;
    }
    
    public String getPaymentDate(){
    	return paymentDate;    	
    }
    
    public int getAmount(){
    	return amount;
    }
}
    
   